<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
	<form id="input" class="form-horizontal" method="post" action="resetPassword?userID=${user.userID }" >
	
		<div class="form-group">
			<label for="userid" class="col-md-4 control-label"><s:text name="user.login.userName"/></label>
			<div class="col-md-5">
				<input type="hidden" name="userName" value="${user.userName }">
				<input type="text" disabled="disabled"  class="form-control" id="userName" value="${user.userName }" placeholder="<s:text name="user.login.userName"/>">
			</div>
		</div>
		
		
		<div class="form-group">
			<label class="col-sm-4 control-label"><s:text name="user.userManager.oldPwd"/></label>
			<div class="col-sm-5">
				<input type="password" class="form-control required" id="userpassword" placeholder="<s:text name="user.userManager.oldPwd"/>" name="userPassword">
	         </div>
		</div>
		
		<div class="form-group">
			<label class="col-sm-4 control-label"><s:text name="user.userManager.newPwd"/></label>
			<div class="col-sm-5">
				<input type="text"  class="form-control required isPwd" id="password" name="password" placeholder="<s:text name="user.userManager.newPwd"/>">
	         </div>
		</div>
		
		<div class="form-group">
			<label class="col-sm-4 control-label"><s:text name="user.userManager.newPwdAgain"/></label>
			<div class="col-sm-5">
				<input type="text" class="form-control required" id="resetpassword" placeholder="<s:text name="user.userManager.newPwdAgain"/>" name="resetPassword" data-rule-equalTo="#password">
	         </div>
		</div>
		
		<div class="form-group">
	       <div class="col-md-5 col-md-offset-2 control-label">
	         	<button type="button" class="btn btn-warning" onClick="ajaxContent('getAllUsers')"><s:text name="common.return"/></button>
	         	<button type="submit" id="submit" class="btn btn-primary"><s:text name="common.save"/></button>
	       </div>
       </div>
	</form>
	
	<script type="text/javascript">
		$(function(){
			$("#input").validate({
				submitHandler:function(form){
					$("#submit").attr("type","button");
					ajaxForm('content','input','aaa');
				}
			});
		});
	</script>
